package org.hzero.order.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import springfox.documentation.service.Tag;
import springfox.documentation.spring.web.plugins.Docket;

/**
 * Swagger Api 描述配置
 */
@Configuration
public class SwaggerTags {

    public static final String ORDER = "order-management";
    public static final String EXPORT = "Export-data(client)";
    public static final String COMPANY = "company-management";
    public static final String CUSTOMER = "customer-management";
    public static final String ITEM = "item-management";
    public static final String HEADER = "header-data";
    public static final String LINE = "line-data";

    @Autowired
    public SwaggerTags(Docket docket) {
        docket.tags(
                new Tag(ORDER, "订单接口"),
                new Tag(EXPORT, "导出接口"),
                new Tag(COMPANY, "公司接口"),
                new Tag(CUSTOMER, "客户接口"),
                new Tag(ITEM, "物料接口"),
                new Tag(HEADER, "订单头接口"),
                new Tag(LINE, "订单行接口")
        );
    }
}
